package Test;

public class Test {
    //匿名内部类
    public static void main(String[] args) {
        Student s1=new Student("zhangsan",18);
        s1.show();


        new Person(){
            @Override
            public void work(){
                System.out.println("work");
            }
        }.show();
    }

}
